<?php
class Blood_PressureModel extends Orm_Base{
    public $table = 'blood_pressure';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'high_pressure' => array('type' => "int(11)",'comment' => '高压'),
        'low_pressure' => array('type' => "int(11)",'comment' => '低压'),
        'date' => array('type' => "varchar(10)",'comment' => '日期'),
        'week' => array('type' => "tinyint",'comment' => '测量时间'),
        'high_status' => array('type' => "tinyint",'comment' => '高压状态(0.正常、1.高压、2.低压)'),
        'low_status' => array('type' => "tinyint",'comment' => '低压状态(0.正常、1.高压、2.低压)'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
        'at' => array('type' => "tinyint(1)",'comment' => '时间段(1.早上、2.上午、3.中午、4.下午、5.晚上)'),
        'sid' => array('type' => "int(11)",'comment' => '关联老年人ID'),
);
    public $pk = 'id';
}
?>
